<%@ page contentType="text/html;charset=UTF-8" %>
<!DOCTYPE html>
<html>
<head>
    <meta name="layout" content="main">
    <g:set var="entityName" value="${message(code: 'myProfile.label', default: 'My Profile')}"/>
    <title><g:message code="default.show.label" args="[entityName]"/></title>
</head>

<body>
<div class="nav" role="navigation">
    <ul>
        
        <li><g:link class="edit" action="edit"><g:message code="default.edit.label" args="[entityName]"/></g:link></li>
    </ul>
</div>

<div id="show-my-profile" class="content scaffold-show" role="main">
    <h1><g:message code="default.show.label" args="[entityName]"/></h1>
    <g:if test="${flash.message}">
        <div class="message" role="status">${flash.message}</div>
    </g:if>
    <ol class="property-list subscription">

        <li class="fieldcontain">
            <span id="kindleAccount-label" class="property-label"><g:message code="myProfile.kindleAccount.label"
                                                                             default="Kindle account"/></span>
            <span class="property-value" aria-labelledby="kindleAccount-label"><g:fieldValue bean="${currentUser}"
                                                                                             field="kindleAccount"/></span>

        </li>

        <g:if test="${currentUser?.timeZone}">
            <li class="fieldcontain">
                <span id="timeZone-label" class="property-label"><g:message code="myProfile.timeZone.label"
                                                                            default="Time zone"/></span>
                <span class="property-value" aria-labelledby="timeZone-label"><g:fieldValue bean="${currentUser}"
                                                                                            field="timeZone"/></span>

            </li>
        </g:if>

    </ol>
    <g:form>
        <fieldset class="buttons">
            <g:link class="edit" action="edit"><g:message code="default.button.edit.label" default="Edit"/></g:link>
        </fieldset>
    </g:form>
</div>
</body>
</html>